<?php
    $messages = $this->flashSession->getMessages();
    if ( count($messages) > 0) {
            foreach ($messages as $messageType => $messageArray) {
                foreach ($messageArray as $message) {
                    echo "<div class=\"am-alert am-alert-{$messageType}\" style=\"text-align:center;margin-bottom:0px;margin-top:0px;\" data-am-alert ><button type=\"button\" class=\"am-close\">&times;</button>{$message}</div>";
                }
            }
    }
?>
